package com.gaussian.property.module.biz.vo.projectreport;

import com.songqi.common.core.domain.page.PageDomain;
import com.songqi.common.core.validationgroup.AppGroup;
import com.songqi.common.core.validationgroup.EditGroup;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.Min;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Pattern;

/**
 * @description:
 * @author: songqi(13776346982)
 * @date: 2024/8/11 14:27
 */
@Data
public class PageQueryProjectReportRequest extends PageDomain {

    @ApiModelProperty(value = "项目id")
    @NotBlank(message = "项目id必填", groups = {AppGroup.class})
    private String projectId;

    @ApiModelProperty(value = "报告类型。mission:任务报告。output:销项。check:稽核報表")
    @Pattern(regexp = "mission|output|check",message = "报告类型参数不正确")
    private String reportType;

    @ApiModelProperty(value = "是否删除。0:未删除。1:已删除。不传不参与查询条件")
    @Min(value = 0, message = "是否删除参数正确")
    @Min(value = 1, message = "是否删除参数正确")
    private Integer isDelete;

    @ApiModelProperty(value = "月份。格式yyyyMM")
    private String month;

    @ApiModelProperty(value = "创建人用户名")
    private String createBy;

    @ApiModelProperty(value = "报告名称/文件名称")
    private String fileName;
}
